class Commodity_warehouse{
    reviseCommodityWarehouse(inventory,limit,rowId){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/background/warehouse",
                method: "POST",
                data:{
                    inventory:inventory,
                    limit:limit,
                    commodityId:rowId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}